package com.ruoyi.shop.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.UserMapper;
import com.ruoyi.shop.domain.User;
import com.ruoyi.shop.service.IUserService;

/**
 * shopService业务层处理
 *
 * @author ruoyi
 * @date 2025-06-09
 */
@Service
public class UserServiceImpl implements IUserService
{
    @Autowired
    private UserMapper userMapper;

    /**
     * 查询shop
     *
     * @param userid shop主键
     * @return shop
     */
    @Override
    public User selectUserByUserid(String userid)
    {
        return userMapper.selectUserByUserid(userid);
    }
    @Override
    public User selectUserByNumber(String usernumber) {
        return userMapper.selectUserByNumber(usernumber);
    }
    /**
     * 查询shop列表
     *
     * @param user shop
     * @return shop
     */
    @Override
    public List<User> selectUserList(User user)
    {
        return userMapper.selectUserList(user);
    }

    /**
     * 新增shop
     *
     * @param user shop
     * @return 结果
     */
    @Override
    public int insertUser(User user)
    {
        return userMapper.insertUser(user);
    }

    /**
     * 修改shop
     *
     * @param user shop
     * @return 结果
     */
    @Override
    public int updateUser(User user)
    {
        return userMapper.updateUser(user);
    }

    /**
     * 批量删除shop
     *
     * @param userids 需要删除的shop主键
     * @return 结果
     */
    @Override
    public int deleteUserByUserids(String[] userids)
    {
        return userMapper.deleteUserByUserids(userids);
    }

    /**
     * 删除shop信息
     *
     * @param userid shop主键
     * @return 结果
     */
    @Override
    public int deleteUserByUserid(String userid)
    {
        return userMapper.deleteUserByUserid(userid);
    }
}
